math object and its methods in javascript